var dom = document.getElementById("School");
var myChart = echarts.init(dom);
option = {
    title: {
        text: '历年录取线（理科）',
        left: 'left'
    },
    tooltip: {
        trigger: 'item',
        formatter: '{a} <br/>{b} : {c}'
    },
    legend: {
        left: 'left',
        data: ['2的指数', '3的指数']
    },
    xAxis: {
        type: 'category',
        name: 'x',
        splitLine: {show: false},
        data: ['2013', '2014', '2015', '2016', '2017']
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    yAxis: {
        type: 'log',
        name: 'y',
        min:450,
        max:550
    },
    series: [
        {
            name: '第一批次',
            type: 'line',
            data: [502, 533, 544, 543, 530],
        },
        {
            name: '第二批次',
            type: 'line',
            data: [481, 498, 512, 507, 488]
        },
    ]
    
};
myChart.setOption(option, true);